package com.sk.sqd;

public class FlyweightClient {

    public static void main(String[] args) {
        FlyweightFactory factory = FlyweightFactory.getInstance();
        Flyweight flyweightA = factory.getFlyweight("A");
        flyweightA.operator("A");

        Flyweight flyweightB = factory.getFlyweight("B");
        flyweightB.operator("B");

        UnsharedConcreteFlyweight unsharedConcreteFlyweight = new UnsharedConcreteFlyweight();
        unsharedConcreteFlyweight.operator("C");

    }

}
